Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: incomplete CSP headers for kapa #3863

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

raymondk
Copy link
Contributor

@raymondk raymondk commented Dec 6, 2024

This should address the following errors showing up in the console:

kapa-widget.bundle.js:2 Refused to load the script 'https://metrics.kapa.ai/web/v3/MHIUVE6Y4VV6H5lpgMyI/loader_v3.11.2.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' 'unsafe-inline' https://internetcomputer.matomo.cloud https://cdn.matomo.cloud https://widget.kapa.ai https://www.google.com https://www.gstatic.com". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Thank you for your contribution to the IC Developer Portal. This repo contains the content for https://internetcomputer.org and the ICP Developer Documentation, https://internetcomputer.org/docs/.

If you are submitting a Pull Request for adding or changing content on the ICP Developer Documentation, please make sure that your contribution meets the following requirements:

@raymondk raymondk requested a review from a team as a code owner December 6, 2024 15:23
Copy link

github-actions bot commented Dec 6, 2024

🤖 Here's your preview: https://fkpod-biaaa-aaaam-abtcq-cai.icp0.io

@raymondk
Copy link
Contributor Author

raymondk commented Dec 6, 2024

Doesn't look like it's working on the preview...

@raymondk raymondk marked this pull request as draft December 6, 2024 16:10
@raymondk raymondk marked this pull request as ready for review December 6, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant